<?php

/**
 * Sign In page view.
 *
 * @var \yii\web\View $this View
 * @var \yii\widgets\ActiveForm $form Form
 * @var \common\modules\user\models\LoginForm $model Model
 */

use common\modules\user\Module;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = Module::t('user', 'BACKEND_LOGIN_TITLE'); ?>
<div class="login-box">
    <div class="login-logo">
        途者科技
    </div>
    <div class="login-box-body">
        <p class="login-box-msg">

        </p>

        <?php $form = ActiveForm::begin(); ?>
        <div class="form-group has-feedback">
            <?= $form->field($model, 'username')->textInput(['placeholder' => $model->getAttributeLabel('username')])->label(false) ?>

            <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
            <?= $form->field($model, 'password')->passwordInput(['placeholder' => $model->getAttributeLabel('password')])->label(false) ?>

            <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        </div>
        <div class="row">
            <div class="col-xs-8">
                <div class="checkbox icheck">
                    <?= $form->field($model, 'rememberMe')->checkbox() ?>
                </div>
            </div>
            <!-- /.col -->
            <div class="col-xs-4">
                <?= Html::submitButton(Module::t('user', 'BACKEND_LOGIN_SUBMIT'), ['class' => 'btn btn-primary  btn-block']) ?>
            </div>
            <!-- /.col -->
        </div>
        <?php ActiveForm::end(); ?>


    </div>
</div>
